/**
 * COPYRIGHT 2021 ALL RESERVED. (C) liaoyulei, https://github.com/dualface
 */


import { ECSComponent } from "../../../3rd/ECS/ECSComponent";
import { ecsclass } from "../../../3rd/ECS/__private";
import { Vector3 } from "../../../Bridge/Vec";
/**
 * 可移动组件
 */
@ecsclass("MovableComponent")
export class MovableComponent extends ECSComponent {

    /**
     * 将要移动到的结果X位置,默认在中间
     */
    tweenXpos:number = 0;


    /**
     * 将要跳起来的位置
     */
    tweenYpos:number 

    /**
     * 移动速度
     */
    speed = 0;

    /**
     * 阻力
     */
     resistance = 0;

    /**
     * 是否正在跳跃中
     */
    startJumpFrame: number;

    /**
     * 构造函数
     *
     * @param position
     * @param direction
     * @param speed
     */
    constructor(speed: number = 0) {
        super();
        this.speed = speed;
    }
}
